package com.rpc.example.serial;

import com.rpc.example.core.Protocol;

/**
 *
 *
 * @author Elvis
 * @version 1.0, 2022/11/10
 */
public interface ISerial {

    <T> byte[] serialized(T message);

    <T> T deserialize(byte[] bytes, Class<T> clazz);

    byte getSerializeType();
}
